console.log(App)
const pageData = {
  data: {

    word:[]
  },
  onLoad: function (options) {
    //for(var idx=0;idx<2;idx++){
    var word1 = wx.getStorageSync('1');
    var word2 = wx.getStorageSync('2');
    var word3 = wx.getStorageSync('3');
    var word4 = wx.getStorageSync('4');
    var word5 = wx.getStorageSync('5');
    var word6 = wx.getStorageSync('6');
    var word7 = wx.getStorageSync('7');
    var word8 = wx.getStorageSync('8');
    var word9 = wx.getStorageSync('9');
    var word10 = wx.getStorageSync('10');
    var word11 = wx.getStorageSync('11');
    var word12 = wx.getStorageSync('12');
    var word13 = wx.getStorageSync('13');
    var word14 = wx.getStorageSync('14');
    var word15 = wx.getStorageSync('15');
    var word16 = wx.getStorageSync('16');
    if (word1) {
      this.setData({ 'word[0].text': word1 });
    }
    if (word2) {
      this.setData({ 'word[1].text': word2 });
    }
    if (word3) {
      this.setData({ 'word[2].text': word3 });
    }
    if (word4) {
      this.setData({ 'word[3].text': word4 });
    }
    if (word5) {
      this.setData({ 'word[4].text': word5 });
    }
    if (word6) {
      this.setData({ 'word[5].text': word6 });
    }
    if (word7) {
      this.setData({ 'word[6].text': word7 });
    }
    if (word8) {
      this.setData({ 'word[7].text': word8 });
    }
    if (word9) {
      this.setData({ 'word[8].text': word9 });
    }
    if (word10) {
      this.setData({ 'word[9].text': word10 });
    }
    if (word11) {
      this.setData({ 'word[10].text': word11 });
    }
    if (word12) {
      this.setData({ 'word[11].text': word12 });
    }
    if (word13) {
      this.setData({ 'word[12].text': word13 });
    }
    if (word14) {
      this.setData({ 'word[13].text': word14 });
    }
    if (word15) {
      this.setData({ 'word[14].text': word15 });
    }
    if (word16) {
      this.setData({ 'word[15].text': word16 });
    }
    // }
  },
  togame(e) {
    wx.redirectTo({
      url: '../game/game'
    });

  },
  toGo: function () {
      wx.redirectTo({
        url: '../game/game'
      });
  }
};
Page(pageData);